package com.ft.scan.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户表;
 *
 * @author : 悟解
 * {@code @date} : 2024-1-28
 */
@Getter
@ApiModel(value = "用户表", description = "")
public class User implements Serializable {
    /**
     * 用户ID
     * -- GETTER --
     * 用户ID
     */
    @ApiModelProperty(name = "用户ID",notes = "插入数据库时自动自增")
    private Integer userId;
    /**
     * 用户名
     * -- GETTER --
     * 用户名
     */
    @Setter
    @ApiModelProperty(name = "用户名", notes = "")
    private String username;
    /**
     * 密码
     * -- GETTER --
     * 密码
     */
    @Setter
    @ApiModelProperty(name = "密码", notes = "")
    private String password;
    /**
     * 微信openid
     * -- GETTER --
     * 微信openid
     */
    @Setter
    @ApiModelProperty(name = "微信openid", notes = "这个要靠前端传入，后端只负责存储")
    private String openid;
    /**
     * 是否为VIP
     */
    @Setter
    @ApiModelProperty(name = "剩余次数", notes = "")
    private int token;
    /**
     * 描述
     * -- GETTER --
     * 描述
     */
    @Setter
    @ApiModelProperty(name = "描述", notes = "")
    private String description;
    /**
     * 用户昵称
     * -- GETTER --
     * 用户昵称
     */
    @Setter
    @ApiModelProperty(name = "用户昵称", notes = "")
    private String nickname;
    /**
     * 手机号
     * -- GETTER --
     * 手机号
     */
    @Setter
    @ApiModelProperty(name = "手机号", notes = "")
    private String mobile;
    /**
     * 用户头像图片
     * -- GETTER --
     * 用户头像图片
     */
    @Setter
    @ApiModelProperty(name = "用户头像图片", notes = "")
    private String avatar;
    /**
     * 最近一次登录时间
     * -- GETTER --
     * 最近一次登录时间
     */
    @Setter
    @ApiModelProperty(name = "最近一次登录时间", notes = "")
    private Date lastLoginTime;


}